package com.htgd.gardenexpo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.htgd.gardenexpo.entity.GeConFood;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author lihailong
 * @date
 */
@Data
public class GeConFoodShopVO {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "店铺名称")
    private String name;

    @ApiModelProperty(value = "分类")
    private String type;

    @ApiModelProperty(value = "介绍")
    private String introduce;

    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "封面")
    private String picture;

    @ApiModelProperty(value = "营业时间")
    private String time;

    @ApiModelProperty(value = "地点")
    private String place;

    @ApiModelProperty(value = "是否置顶 0.否 1.是")
    private Integer isTop;

    @ApiModelProperty(value = "状态 0.待审核 1.已审核 2.审核失败 3.已发布 -1.已删除 4.未提交")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "发布时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "点击量")
    private Integer hit;

    private String typeText;

    private List<GeConFood>  foods;

    private String lng;

    private String lat;

    private String distance;

    private double distanceValue;

    private long hot;

    private boolean collect;

    private long collectAmount;

}
